package com.chrray.position.service.auth;

import com.chrray.position.auth.Authentication;
import com.chrray.position.domain.FdAuthEnterprise;
import com.chrray.position.domain.dto.FdAuthEnterpriseDTO;
import com.chrray.position.domain.dto.FdAuthPersonalDTO;
import com.chrray.position.enums.app.FdUserRoleEnum;
import com.chrray.position.pojo.vo.auth.WxLoginVo;
import com.chrray.position.util.result.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

public interface WxAuthService {
    ResponseResult<WxLoginVo> jscodeAuth(String code);

    ResponseResult<FdAuthPersonalDTO> personRealNameAuth(MultipartFile idImg);

    ResponseResult<FdAuthEnterpriseDTO> entRealNameAuth(MultipartFile idImg);

    ResponseResult<Authentication> changeRole(Integer role);

    ResponseResult<String> savePersonalAuth(FdAuthPersonalDTO body);

    ResponseResult<String> saveEnterpriseAuth(FdAuthEnterpriseDTO body);
}
